﻿<%@ Page Title="Финансы" Language="VB" MasterPageFile="~/adminnew/Layout.master" AutoEventWireup="false" CodeFile="Finances.aspx.vb" Inherits="adminnew_Finances" %>
<%@ Import Namespace="System.Globalization" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">

    <div class="navbar-form navbar-right" style="margin-top:20px;">
        <div class="form-group">
            <input type="text" class="form-control btn-sm" name="taxi_phone" style="width: 225px; height: 30px;" placeholder="Введите телефон водителя" value="<%=taxi_phone %>" />
        </div>
        <button type="submit" class="btn btn-sm  btn-success"><span class="glyphicon glyphicon-search" aria-hidden="true"></span>&nbsp;Поиск</button>
        <br />
        <div class="form-group" style="margin-top:20px;">
            <input type="text" class="form-control btn-sm" name="taxi_amount" style="width: 225px; height: 30px;" placeholder="Введите сумму"  />
        </div>
        <button type="submit" style="margin-top:20px;" class="btn btn-sm  btn-success"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span>&nbsp;Пополнить</button>
    </div>
    <h2 class="page-header" style="margin: 20px 0 10px 0;"><%=Master.Page.Title%> (всего <%=finances.Count%>)</h2>



    <table class="table table-bordered table-hover table-condensed table-striped" style="border: none; border-top: 1px solid #ddd;">
        <thead>
            <tr>
                <th width="45px;">№</th>
                <th>ФИО</th>
                <th>Код / Источник</th>
                <th>Дата поступления</th>
                <th>Сумма</th>
                <th>ОСМП код</th>
            </tr>
        </thead>
        <tbody>
            <% Dim index = 1%>
            <%For Each f In finances%>
            <tr>
                <td><%=index%></td>
                <td><a href="/adminnew/taxistinfo.aspx/?taxistid=<%=f.taxist.taxi_id%>&returlurl=<%=HttpUtility.UrlEncode(Request.Url.AbsolutePath + "?taxi_phone=" +taxi_phone)%>" title="Подробнее"><%=f.taxist.taxi_lastname + " " + f.taxist.taxt_firstname%></a></td>
                <td><%=f.transfer_code%></td>
                <td><%=CType(f.transfer_date, DateTime).AddHours(3).ToString("dd MMMM yyyy г. HH:mm", New CultureInfo("Ru-ru"))%></td>
                <td><%=CType(f.transfer_amount,Integer)%></td>
                <td><%=f.txt_id%></td>
            </tr>
            <%index += 1
            Next%>
        </tbody>
        <tfoot style="border: none;">
            <tr style="border: none;">
                <td colspan="6" style="border: none;">
                    <%-- @Html.Partial("_Paginator", PaginationHelper)--%>
                </td>
            </tr>
        </tfoot>
    </table>

    <script type="text/javascript">
        $(document).ready(function () {
            setActivePage(6);
        });
    </script>

</asp:Content>

